Skip to content

perf: optimize varbinview construction#8146

Merged
joseph-isaacs merged 7 commits into
developfrom
claude/avx512-decode-benchmark-wRhkZ
Jun 3, 2026
Merged

perf: optimize varbinview construction#8146
joseph-isaacs merged 7 commits into
developfrom
claude/avx512-decode-benchmark-wRhkZ

Conversation

@joseph-isaacs

@joseph-isaacs joseph-isaacs commented May 29, 2026

Copy link
Copy Markdown
Contributor

Summary

Opptimizes the hot path for constructing binary views when the entire decoded heap fits within a single buffer.

Changes

Optimized view construction (vortex-array/src/arrays/varbinview/build_views.rs):

  • Fast path for the common case where the entire decoded heap fits in a single buffer
  • Eliminates per-element rollover checks and out-of-line BinaryView::make_view calls in the hot loop
  • Constructs reference views inline for long strings (>4 bytes) and inlined views for short strings
  • Reduces branch mispredictions and improves cache locality during view construction

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/performance A performance improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants